package com.sprucetec.live.service;

import com.sprucetec.live.common.dto.PagedListDTO;
import com.sprucetec.live.common.dto.business.LiveCategoryDto;
import com.sprucetec.live.common.dto.business.LiveVideoDto;
import com.sprucetec.live.entity.LiveCategory;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName LiveCategoryService
 * @Description:
 * @Author Kenny
 * @Date 2020/3/30
 **/
public interface LiveCategoryService {


    /**
     * 分页查询分类列表
     */
    PagedListDTO<LiveCategoryDto> getCategoryPage(LiveCategoryDto liveCategoryDto);

    /**
     * 创建分类
     * @param liveCategory
     * @return
     */
    int createCategory(LiveCategory liveCategory);

    /**
     * 修改分类
     * @param liveCategory
     * @return
     */
    int updateCategory(LiveCategory liveCategory);


    /**
     * 获取所有分类集合
     * @return
     */
    List<LiveCategory> getCategoryList();

    /**
     * 所有分类的id model map
     * @return
     */
    Map<Long, LiveCategory> getAllCategoryMap();

    /**
     * 校验分类是否重复
     * @param liveCategory
     * @return
     */
    String checkCategory(LiveCategory liveCategory);

}
